package dao.impl;

import java.sql.Connection;
import java.util.Random;

import dao.BaseDao;

public class BaseDaoImpl implements BaseDao {
    private ConnectionPool pool;
    private Random rnd;

	public ConnectionPool getPool() {
		return pool;
	}

	public void setPool(ConnectionPool pool) {
		this.pool = pool;
	}

	public Long getRandom() {
		if(rnd==null){
			rnd=new Random(10000000);
		}
		return rnd.nextLong();
	}

}
